package com.dhecp.project.purchase.service;

import com.dhecp.common.core.domain.AjaxResult;
import com.dhecp.project.purchase.domain.PurchasingSupplier;

import java.util.List;
import java.util.Map;

public interface PurchasingSupplierService {

    /**
     * 查询
     * @param params
     * @return List - PurchasingSupplier
     * @throws Exception
     * @author DH-Xxj
     */
    List<PurchasingSupplier> queryData(Map<String, Object> params) throws Exception;

    /**
     * 通过guid查询
     * @param guid 必要参数：行唯一值
     * @return PurchasingSupplier 实体
     * @author DH-Xxj
     */
    PurchasingSupplier queryDataByGuid(Map<String, Object> params);

    /**
     * 新增
     * @param infoItems 必要参数：对应实体类的json格式字符串
     * @return
     * @author DH-Xxj
     */
    AjaxResult insertData(Map<String, Object> params);

    /**
     * 删除
     * @param infoItems 必要参数：对应实体类的json格式字符串
     * @return
     * @author DH-Xxj
     */
    AjaxResult deleteData(Map<String, Object> params);

    /**
     * 通过guid修改数据
     * @param infoItems 必要参数：对应实体类的json格式字符串
     * @return
     * @author DH-Xxj
     */
    AjaxResult updateByGuid(Map<String, Object> params);
    
}
